<?
require 'Zend/Dom/Query.php';
require 'Zend/Http/Client.php';
abstract class ParserAbstract{
    protected 
        $_url,
        $_page,
        $_sourceId,
        $_model;

    public function __construct( $url = '' )
    {
        $this->_url = $url;
        $client = new Zend_Http_Client( $this->_url );
        $client->setAdapter('Zend_Http_Client_Adapter_Curl');
        $client->setConfig(array('timeout' => 60));
        $response = $client->request();
        $body = $response->getBody();
        $this->_page = $body;
        
        $this->_model = PostPeer::getInstance();
    }
    
    protected function getInnerHtml($node)
    {
        $innerHTML= '';
        $children = $node->childNodes;
        foreach($children as $child){
                    $innerHTML .= $child->ownerDocument->saveXML($child);
        }
        return $innerHTML;
    }
}